package com.wang.pojo;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

import java.util.*;

/**
 * 实体类
 */
@Component
@Configuration(proxyBeanMethods = true)
@ConfigurationProperties("myconfig.dynasty")
public class Adynasty {
    private int id;
    private String name;
    private String capital;
    private int stYear;
    private int edYear;

    /**
     * 窗口类型
     */
    private String[] hobbyArr;
    private List<String> hobbyList;
    private Set<String> hobbySet;
    private Map<String, Integer> hobbyMap;

    /**
     * 自定义引用类型
     */
    private Aking[] kingArr;
    private List<Aking> kingList;
    private Set<Aking> kingSet;
    private Map<String, Aking> kingMap;
    private Properties kingPro;

    @Override
    public String toString() {
        return "Adynasty{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", capital='" + capital + '\'' +
                ", stYear=" + stYear +
                ", edYear=" + edYear +
                '}';
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCapital() {
        return capital;
    }

    public void setCapital(String capital) {
        this.capital = capital;
    }

    public int getStYear() {
        return stYear;
    }

    public void setStYear(int stYear) {
        this.stYear = stYear;
    }

    public int getEdYear() {
        return edYear;
    }

    public void setEdYear(int edYear) {
        this.edYear = edYear;
    }

    public String[] getHobbyArr() {
        return hobbyArr;
    }

    public void setHobbyArr(String[] hobbyArr) {
        this.hobbyArr = hobbyArr;
    }

    public List<String> getHobbyList() {
        return hobbyList;
    }

    public void setHobbyList(List<String> hobbyList) {
        this.hobbyList = hobbyList;
    }

    public Set<String> getHobbySet() {
        return hobbySet;
    }

    public void setHobbySet(Set<String> hobbySet) {
        this.hobbySet = hobbySet;
    }

    public Map<String, Integer> getHobbyMap() {
        return hobbyMap;
    }

    public void setHobbyMap(Map<String, Integer> hobbyMap) {
        this.hobbyMap = hobbyMap;
    }

    public Aking[] getKingArr() {
        return kingArr;
    }

    public void setKingArr(Aking[] kingArr) {
        this.kingArr = kingArr;
    }

    public List<Aking> getKingList() {
        return kingList;
    }

    public void setKingList(List<Aking> kingList) {
        this.kingList = kingList;
    }

    public Set<Aking> getKingSet() {
        return kingSet;
    }

    public void setKingSet(Set<Aking> kingSet) {
        this.kingSet = kingSet;
    }

    public Map<String, Aking> getKingMap() {
        return kingMap;
    }

    public void setKingMap(Map<String, Aking> kingMap) {
        this.kingMap = kingMap;
    }

    public Properties getKingPro() {
        return kingPro;
    }

    public void setKingPro(Properties kingPro) {
        this.kingPro = kingPro;
    }
}
